package cn.snmp.mutual.uk.stack;

public class ResponsePdu extends Pdu {
    private static final String version_id = "@(#)$Id: ResponsePdu.java,v 3.6 2006/11/30 14:45:50 birgit Exp $ Copyright Westhawk Ltd";

    public ResponsePdu(final SnmpContextBasisFace con, final Pdu requestPdu) {
        super(con);
        this.setMsgType((byte) (-94));
        this.req_id = requestPdu.req_id;
        this.snmpv3MsgId = requestPdu.snmpv3MsgId;
    }

    public void setErrorStatus(final int errorStatus) {
        this.errstat = errorStatus;
    }

    public void setErrorIndex(final int errorIndex) {
        this.errind = errorIndex;
    }

    @Override
    void transmit() {
        this.transmit(false);
    }

    @Override
    public String toString() {
        return super.toString(true);
    }

    @Override
    protected void new_value(final int n, final Varbind res) {
    }

    @Override
    protected void tell_them() {
    }

    @Override
    protected boolean isExpectingResponse() {
        return false;
    }
}
